package com.base_data_handler.task;

import java.util.logging.Logger;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.base_data_handler.function.air.AirAllCityHandler;

public class AirAllCityGet2DB implements Job {

	private static final Logger log = Logger.getLogger(AirAllCityGet2DB.class.getName());
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		// 调度任务参数
//		JobDataMap dataMap = context.getJobDetail().getJobDataMap();
//		String xxx = (String) dataMap.get("xxx");
			
		try {
			log.info("获取全国空气质量数据并入库");
			AirAllCityHandler.saveAllCity2db();
		} catch (Exception e) {
		   log.info("获取全国空气质量数据并入库：" + e.getMessage());
			e.printStackTrace();
		}
		
	}
}
